package com.tensquare.recruit.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import com.tensquare.recruit.model.Recruit;

import java.util.List;

public interface RecruitDao extends JpaRepository<Recruit,String>,JpaSpecificationExecutor<Recruit>{

    List<Recruit> findTop6ByStateOrderByCreatetime(String state);

    List<Recruit> findTop4ByStateNotOrderByCreatetimeDesc(String state);


}
